package com.boyunv.mediator.example01;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/9/10 9:38
 *@version 1.0
 */

public class Cliient {
    
    public static void main(String[] args) {
        //创建中介者
        MediatorImpl mediator = new MediatorImpl();
        ConcreteColleagueA concreteColleagueA = new ConcreteColleagueA(mediator);
        concreteColleagueA.exec("Key-A");
        ConcreteColleagueA concreteColleagueB = new ConcreteColleagueA(mediator);
        concreteColleagueB.exec("Key-B");
    }
}
